CMAKE_MINIMUM_REQUIRED(VERSION 3.10)
PROJECT(image_host)
include_directories(${PROJECT_SOURCE_DIR}/include)
include_directories(${PROJECT_SOURCE_DIR}/include/lua)

include_directories(${PROJECT_SOURCE_DIR}/mod/luaWrapper/)
include_directories(${PROJECT_SOURCE_DIR}/mod/common)
include_directories(${PROJECT_SOURCE_DIR}/mod/record)
include_directories(${PROJECT_SOURCE_DIR}/mod/filebox/libmov/include)
include_directories(${PROJECT_SOURCE_DIR}/mod/filebox/libmpeg/include)
include_directories(${PROJECT_SOURCE_DIR}/mod/filebox/libflv/include)
include_directories(${PROJECT_SOURCE_DIR}/mod/ipc)
 
set(cmake_build_type "Debug")
set(cmake_cxx_flage_debug "$ENV{CXXFLAGS} -O0 -Wall -g -ggdb")
set(cmake_cxx_flags_release "$ENV{CXXFLAGS} -03 -Wall")
 
set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR arm)
 

option(USE_MINI_IMG_HOST "use mini img host for hugemed" ON)
  
if (WIN32)       
#这里     
include(plat/win32_vs2015.cmake) 
else()
#add_definitions(-std=c++11)  
endif(WIN32)  

#编解码库  
if(PLAT_XILINK)
add_subdirectory(./media_plat/xilinx)
add_subdirectory(./mod/record)
endif(PLAT_XILINK)

#子目录 
add_subdirectory(./mod/filebox)
add_subdirectory(./mod/luaWrapper)

# vsocdedebug
 
#整合版本   
add_subdirectory(./mod)
#产品 主程序     
add_subdirectory(./product)
#写入h265
if(HAVE_TEST_ENCODE_H265)
#add_subdirectory(./test/mov-writer-h265)
add_subdirectory(./test/h265_pktmp4)
endif()
 
add_subdirectory(./test/xilinx_AXI)
message("test axi app")
if(HAVE_LRZ)
add_subdirectory(./test/lrz)
endif()
add_subdirectory(./mod/common)
